package com.example.composeplayground.screens

import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import androidx.navigation.NavHostController
import com.example.composeplayground.common.TokenUtils

@Preview
@Composable
fun LoginScreen(topNavController: NavHostController? = null) {
    Column {
        Text(text = "LoginScreen")
        Button(onClick = {
            TokenUtils.setToken("asd")
            topNavController?.navigate("Main")
        }) {
            Text(text = "登录")
        }
    }
}